/*! For license information please see scribe_bundle_v1.0.55.min.js.LICENSE.txt */ var Scribe;Scribe=(()=>{var e={795:function(e,t,n){var i;e=n.nmd(e),function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,s=r[typeof t]&&t,a=r.object&&e&&!e.nodeType&&e,l=s&&a&&"object"==typeof n.g&&n.g;!l||l.global!==l&&l.window!==l&&l.self!==l||(o=l);var u=Math.pow(2,53)-1,c=/\bOpera/,d=Object.prototype,b=d.hasOwnProperty,f=d.toString;function p(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function h(e){return e=y(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:p(e)}function m(e,t){for(var n in e)b.call(e,n)&&t(e[n],n,e)}function g(e){return null==e?p(e):f.call(e).slice(8,-1)}function S(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function v(e,t){var n=null;return function(e,t){var n=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=u)for(;++n3?"WebKit":/\bOpera\b/.test(D)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(V)&&"WebKit"||!V&&/\bMSIE\b/i.test(t)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==V&&/\bPlayStation\b(?! Vita\b)/i.test(D)&&"NetFront")&&(V=[a]),"IE"==D&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(D+=" Mobile",U="Windows Phone "+(/\+$/.test(a)?a:a+".x"),A.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(D="IE Mobile",U="Windows Phone 8.x",A.unshift("desktop mode"),W||(W=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=D&&"Trident"==V&&(a=/\brv:([\d.]+)/.exec(t))&&(D&&A.push("identifying as "+D+(W?" "+W:"")),D="IE",W=a[1]),j){if("global",d=null!=(u=n)?typeof u.global:"number",/^(?:boolean|number|string|undefined)$/.test(d)||"object"==d&&!u.global)g(a=n.runtime)==x?(D="Adobe AIR",U=a.flash.system.Capabilities.os):g(a=n.phantom)==E?(D="PhantomJS",W=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof B.documentMode&&(a=/\bTrident\/(\d+)/i.exec(t))?(W=[W,B.documentMode],(a=+a[1]+4)!=W[1]&&(A.push("IE "+W[1]+" mode"),V&&(V[1]=""),W[1]=a),W="IE"==D?String(W[1].toFixed(1)):W[0]):"number"==typeof B.documentMode&&/^(?:Chrome|Firefox)\b/.test(D)&&(A.push("masking as "+D+" "+W),D="IE",W="11.0",V=["Trident"],U="Windows");else if(k&&(R=(a=k.lang.System).getProperty("os.arch"),U=U||a.getProperty("os.name")+" "+a.getProperty("os.version")),T){try{W=n.require("ringo/engine").version.join("."),D="RingoJS"}catch(e){(a=n.system)&&a.global.system==n.system&&(D="Narwhal",U||(U=a[0].os||null))}D||(D="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(a=n.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(A.push("Node "+a.versions.node),D="Electron",W=a.versions.electron):"string"==typeof a.versions.nw&&(A.push("Chromium "+W,"Node "+a.versions.node),D="NW.js",W=a.versions.nw)),D||(D="Node.js",R=a.arch,U=a.platform,W=(W=/[\d.]+/.exec(a.version))?W[0]:null));U=U&&h(U)}if(W&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(W)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(j&&r.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(F=/b/i.test(a)?"beta":"alpha",W=W.replace(RegExp(a+"\\+?$"),"")+("beta"==F?P:M)+(/\d+\+?/.exec(a)||"")),"Fennec"==D||"Firefox"==D&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))D="Firefox Mobile";else if("Maxthon"==D&&W)W=W.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(G))"Xbox 360"==G&&(U=null),"Xbox 360"==G&&/\bIEMobile\b/.test(t)&&A.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(D)&&(!D||G||/Browser|Mobi/.test(D))||"Windows CE"!=U&&!/Mobi/i.test(t))if("IE"==D&&j)try{null===n.external&&A.unshift("platform preview")}catch(e){A.unshift("embedded")}else(/\bBlackBerry\b/.test(G)||/\bBB10\b/.test(t))&&(a=(RegExp(G.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||W)?(U=((a=[a,/BB10/.test(t)])[1]?(G=null,z="BlackBerry"):"Device Software")+" "+a[0],W=null):this!=m&&"Wii"!=G&&(j&&C||/Opera/.test(D)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==D&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==D&&(U&&!/^Win/.test(U)&&W>5.5||/\bWindows XP\b/.test(U)&&W>8||8==W&&!/\bTrident\b/.test(t)))&&!c.test(a=e.call(m,t.replace(c,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),c.test(D)?(/\bIE\b/.test(a)&&"Mac OS"==U&&(U=null),a="identify"+a):(a="mask"+a,D=I?h(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(U=null),j||(W=null)),V=["Presto"],A.push(a));else D+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==D&&"+"==a[1].slice(-1)?(D="WebKit Nightly",F="alpha",W=a[1].slice(0,-1)):W!=a[1]&&W!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(W=null),a[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==V&&(V=["Blink"]),j&&(b||a[1])?(V&&(V[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=V?"27":"28")):(V&&(V[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:a<602?9:a<604?10:a<606?11:a<608?12:"12"),V&&(V[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==D&&(!W||parseInt(W)>45)?W=a:"Chrome"==D&&/\bHeadlessChrome/i.test(t)&&A.unshift("headless")),"Opera"==D&&(a=/\bzbov|zvav$/.exec(U))?(D+=" ",A.unshift("desktop mode"),"zvav"==a?(D+="Mini",W=null):D+="Mobile",U=U.replace(RegExp(" *"+a+"$"),"")):"Safari"==D&&/\bChrome\b/.exec(V&&V[1])?(A.unshift("desktop mode"),D="Chrome Mobile",W=null,/\bOS X\b/.test(U)?(z="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(D)&&!W&&(W=L("Chrome")),W&&0==W.indexOf(a=/[\d.]+$/.exec(U))&&t.indexOf("/"+a+"-")>-1&&(U=y(U.replace(a,""))),U&&-1!=U.indexOf(D)&&!RegExp(D+" OS").test(U)&&(U=U.replace(RegExp(" *"+S(D)+" *"),"")),V&&!/\b(?:Avant|Nook)\b/.test(D)&&(/Browser|Lunascape|Maxthon/.test(D)||"Safari"!=D&&/^iOS/.test(U)&&/\bSafari\b/.test(V[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(D)&&V[1])&&(a=V[V.length-1])&&A.push(a),A.length&&(A=["("+A.join("; ")+")"]),z&&G&&G.indexOf(z)<0&&A.push("on "+z),G&&A.push((/^on /.test(A[A.length-1])?"":"on ")+G),U&&(a=/ ([\d.+]+)$/.exec(U),l=a&&"/"==U.charAt(U.length-a[0].length-1),U={architecture:32,family:a&&!l?U.replace(a[0],""):U,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(R))&&!/\bi686\b/i.test(R)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+a),"")),D&&(/\bWOW64\b/i.test(t)||j&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(t))&&A.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==D&&parseFloat(W)>=39&&(U.architecture=64),t||(t=null);var N={};return N.description=t,N.layout=V&&V[0],N.manufacturer=z,N.name=D,N.prerelease=F,N.product=G,N.ua=t,N.version=D&&W,N.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},N.parse=e,N.toString=function(){return this.description||""},N.version&&A.unshift(W),N.name&&A.unshift(D),U&&D&&(U!=String(U).split(" ")[0]||U!=D.split(" ")[0]&&!G)&&A.push(G?"("+U+")":"on "+U),A.length&&(N.description=A.join(" ")),N}();o.platform=x,void 0===(i=function(){return x}.call(t,n,t,e))||(e.exports=i)}.call(this)},43:(e,t,n)=>{"use strict";!function(){var t,i,r,o=0,s=[];for(i=0;i<256;i++)s[i]=(i+256).toString(16).substr(1);function a(){var e=(16,(!t||o+16>l.BUFFER_SIZE)&&(o=0,t=l.randomBytes(l.BUFFER_SIZE)),t.slice(o,o+=16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}function l(){var e=a();return s[e[0]]+s[e[1]]+s[e[2]]+s[e[3]]+"-"+s[e[4]]+s[e[5]]+"-"+s[e[6]]+s[e[7]]+"-"+s[e[8]]+s[e[9]]+"-"+s[e[10]]+s[e[11]]+s[e[12]]+s[e[13]]+s[e[14]]+s[e[15]]}l.BUFFER_SIZE=4096,l.bin=a,l.clearBuffer=function(){t=null,o=0},l.test=function(e){return"string"==typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},"undefined"!=typeof crypto?r=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(r=window.msCrypto),r=r||n(906),e.exports=l,l.randomBytes=function(){if(r){if(r.randomBytes)return r.randomBytes;if(r.getRandomValues)return"function"!=typeof Uint8Array.prototype.slice?function(e){var t=new Uint8Array(e);return r.getRandomValues(t),Array.from(t)}:function(e){var t=new Uint8Array(e);return r.getRandomValues(t),t}}return function(e){var t,n=[];for(t=0;t{"use strict";n.r(t),n.d(t,{default:()=>T});const i=function(e){const t={unloadEventTracker:(...t)=>{let n=t[0];window.addEventListener("beforeunload",(()=>{e.sendEvent("uploadEvent",n,!0),e.flushData()}))}};return Object.freeze({usePlugin:e=>{[_,pluginName,...pluginArguments]=e,t[pluginName](pluginArguments)}})},r={JWT:"jwt",OAuth2:"id_token"};Object.freeze(r);var o=n(795),s=n.n(o);const a=e=>{let t=e+"=",n=document.cookie.split(";");for(let e=0;e(this.title=e,this),setPath:e=>(this.path=e,this),setLocation:e=>(this.location=e,this),setSessionID:e=>(this.sessionID=e,this),setID:e=>(this.id=e,this),setBrowser:e=>(this.browser=e,this),setBrowserVersion:e=>(this.browserVersion=e,this),setDeviceType:e=>(this.deviceType=e,this),setOSArchitecture:e=>(this.OSArchitecture=e,this),setOSType:e=>(this.OSType=e,this),setOSVersion:e=>(this.OSVersion=e,this),setScreenResolution:(e,t)=>(this.screenResolution=e.toString()+"x"+t.toString(),this),build:()=>{let e=new Object;return e.title=this.title,e.path=this.path,e.lct=this.location,e.sid=this.sessionID,e.id=this.id,e.bst=this.browser,e.bsv=this.browserVersion,e.dvi=this.deviceType,e.osa=this.OSArchitecture,e.ost=this.OSType,e.osv=this.OSVersion,e.res=this.screenResolution,e}})},p=e=>{e.facets.setTitle(document.title),e.facets.setPath(document.location.pathname),e.facets.setLocation(document.URL.split("#")[0]),navigator.cookieEnabled&&(e.facets.setSessionID(function(e){let t=a(u);return null===t&&(t=function(){let e=new Date;return""+e.getUTCFullYear()%1e3+e.getUTCMonth().toString().padStart(2,"0")+e.getUTCDate().toString().padStart(2,"0")+e.getUTCHours().toString().padStart(2,"0")+e.getUTCMinutes().toString().padStart(2,"0")+"-"+Math.random().toString(36).substring(2)}()),l(u,t,30),t}()),e.facets.setID(h()));var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;e.facets.setScreenResolution(t,n)},h=()=>{let e=a(b);return null===e&&(e=d()()),function(e,t,n=10){l(e,t,365*n*24*60)}(b,e),e},m=function(e){let t=new Array(e),n=0,i=0,r=0;return Object.freeze({get:e=>e<0?t[i+e]:!1===e?t[i-1]:t[e],array:()=>{let i=n,o=[];for(let n=0;n(t[i]=o,i=(i+1)%e,r{if(0==r)return null;--r;let i=t[n];return n=(n+1)%e,i},size:()=>r,clear:()=>{i=n,r=0},empty:()=>0===r,full:()=>r===e})},g=function(e,t=0){const n={timeout:null,promise:null,resolve:null,previousFlushTime:0,complete:!0};if(null==e)throw new Error("Error: Debounce have no function to call.");if(!(t>0))throw new Error("Error: Debounce wait is NOT a positive number.");const i=(e,...t)=>{n.resolve(e(...t)),n.complete=!0};return(r,...o)=>(clearTimeout(n.timeout),1==n.complete&&(n.complete=!1,n.promise=new Promise((e=>{n.resolve=e}))),r?i(e,...o):((e,t,...r)=>{n.timeout=setTimeout((()=>i(e,...r)),t)})(e,t,...o),n.promise)},S=(e,t)=>{let n=null,i=!1;const r=(o=0)=>{if(0==o&&i)return n;if(e.empty())return n;let s=e.array();return e.clear(),n=(e=>{let n=function(e){let t=0,n={},i=[];for(let r of e){r.e in n||(n[r.e]=++t);let e=r.d,o={};for(let i in e)i in n||(n[i]=++t),e[i]in n||(n[e[i]]=++t),o[n[i]]=n[e[i]];let s=Object.assign({},r);s.e=n[r.e],s.t=r.t,s.d=o,i.push(s)}return n=function(e){var t={};for(var n in e)t[e[n]]=n;return t}(n),JSON.stringify({dict:n,data:i})}(e);return fetch(t.gatewayURL,{method:"POST",body:n,keepalive:t.keepAlive,headers:{"x-scribe-source":t.scribeSource,"x-token-type":t.xTokenType,"x-token":t.xToken}})})(s).then((e=>(i=!1,e))).catch((t=>{if(o{r(++o)}),v.resendTimeout*(o+1))}else i=!1;return t})),n};return Object.freeze({resendIfFail:r,getVariable:e=>{if("object"!=typeof e.reqBody)throw Error("Get Variable request body must be an object");if(void 0===e.service)throw Error("Get variable call missing service name");const n=e.service,i=t.transmitterURL+"/"+n+"/webVariable/",r=JSON.stringify(e.reqBody);return fetch(i,{method:"POST",body:r,keepalive:t.keepAlive}).then((e=>e.json())).then((e=>e)).catch((t=>{throw Error(`GetVariable call failed for variable: ${e.reqBody.var} with error: ${t}`)}))}})},v={maxQueueSize:500,maxResend:3,resendTimeout:5e3,inactiveTimeout:5e3};Object.freeze(v);const y=function(){let e={};return Object.freeze({applicationID:function(t){return e.aid=t,this},appVersion:function(t){return e.avn=t,this},bookingBatch:function(t){return e.bbc=t,this},bookingCode:function(t){return e.bkg=t,this},city:function(t){return e.city=t,this},carrier:function(t){return e.crn=t,this},clientIP:function(t){return e.clientIP=t,this},country:function(t){return e.ctry=t,this},driver:function(t){return e.dax=t,this},deviceLanguage:function(t){return e.dla=t,this},deviceLocale:function(t){return e.dlc=t,this},domain:function(t){return e.dom=t,this},device:function(t){return e.dvc=t,this},deviceID:function(t){return e.dvi=t,this},deviceBrand:function(t){return e.dvn=t,this},deviceModel:function(t){return e.dvm=t,this},deviceRAM:function(t){return e.dvr=t,this},deviceScreenFactor:function(t){return e.dsf=t,this},error:function(t){return e.err=t,this},experiment:function(t){return e.exp=t,this},foodBusinessType:function(t){return e.fbt=t,this},foodOrderType:function(t){return e.fot=t,this},host:function(t){return e.host=t,this},iD:function(t){return e.id=t,this},iPAddress:function(t){return e.ip=t,this},languageCode:function(t){return e.lan=t,this},locationGranted:function(t){return e.lgt=t,this},locale:function(t){return e.lng=t,this},location:function(t){return e.loc=t,this},log:function(t){return e.log=t,this},logLevel:function(t){return e.lvl=t,this},taxiVehicle:function(t){return e.tex=t,this},vehiclePlate:function(t){return e.vhp=t,this},merchant:function(t){return e.mex=t,this},mexUser:function(t){return e.meu=t,this},mexStore:function(t){return e.mes=t,this},mobileCountryCode:function(t){return e.mcc=t,this},network:function(t){return e.net=t,this},networkType:function(t){return e.nwt=t,this},osType:function(t){return e.ost=t,this},osVersion:function(t){return e.osv=t,this},passenger:function(t){return e.pax=t,this},patronusID:function(t){return e.patid=t,this},publicUserID:function(t){return e.pid=t,this},serviceUserID:function(t){return e.sui=t,this},prefix:function(t){return e.pre=t,this},request:function(t){return e.req=t,this},region:function(t){return e.reg=t,this},screenResolution:function(t){return e.res=t,this},scriptValue:function(t){return e.script=t,this},segment:function(t){return e.seg=t,this},series:function(t){return e.ser=t,this},session:function(t){return e.sid=t,this},sampleRate:function(t){return e.sr=t,this},source:function(t){return e.src=t,this},scribeSDKVersion:function(t){return e.ssv=t,this},developmentStage:function(t){return e.stage=t,this},build:function(t){return e.build=t,this},stringValue:function(t){return e.sval=t,this},vehicleTypeID:function(t){return e.svc=t,this},tag:function(t){return e.tag=t,this},token:function(t){return e.tkn=t,this},telco:function(t){return e.tlc=t,this},timestamp:function(t){return e.ts=t,this},timeIngested:function(t){return e.tsi=t,this},timeIngestedKafka:function(t){return e.tsk=t,this},timeConsumedKafka:function(t){return e.tkc=t,this},eventType:function(t){return e.typ=t,this},eventID:function(t){return e.uuid=t,this},value:function(t){return e.val=t,this},dropoffLocation:function(t){return e.dlc=t,this},additionalDropLocations:function(t){return e.adl=t,this},locationGeohash:function(t){return e.lgh=t,this},batch:function(t){return e.bch=t,this},variantID:function(t){return e.vrt=t,this},treatment:function(t){return e.trt=t,this},statsBatchID:function(t){return e.sbi=t,this},statsEventSource:function(t){return e.ses=t,this},scribeSDKType:function(t){return e.sst=t,this},kudo:function(t){return e.kudo=t,this},partnerID:function(t){return e.parid=t,this},partitionKey:function(t){return e.partkey=t,this},mexMerchant:function(t){return e.mem=t,this},browserType:function(t){return e.bst=t,this},browserVersion:function(t){return e.bsv=t,this},pageTitle:function(t){return e.title=t,this},urlPath:function(t){return e.path=t,this},pageLocation:function(t){return e.lct=t,this},customFacet:function(t,n){if("string"!=typeof t)throw Error("Facet key must be a string");return e[t]=n,this},buildFacets:function(){if(Object.keys(e).length<1)throw Error("Facet building failed: at least one facet is required");return new x(e)}})};function x(e){Object.assign(this,e)}const w={i8:"1.0.55"},O="https://mcd-gateway.stg-myteksi.com/v2/web/track",E="https://public.stg-myteksi.com/x-transmitter/v2";let k=function(){const e="WebSDK",t={appName:"",scribeSource:"",xTokenType:"",xToken:"",facets:new f,globalFacets:{},gatewayURL:O,transmitterURL:E,initialized:!1,keepAlive:!1};let n;Object.seal(t);const o=new Set(Object.values(r)),a=function(){return t.initialized},l=function(){return n.sendEvent(null,!0)};return Object.freeze({initialize:function(i,r=!1,o=!1,a=""){t.appName=i,t.scribeSource=a||[e,w.i8,t.appName].join("/"),t.gatewayURL=r?"https://mcd-gateway.grabtaxi.com/v2/web/track":O,t.keepAlive=o,t.transmitterURL=r?"https://public.grab.com/x-transmitter/v2":E,0==t.initialized&&(n=function(e,t){const n={promise:Promise.resolve(null)},i=new m(e.maxQueueSize);let r=S(i,t);const o=new g((()=>r.resendIfFail()),e.inactiveTimeout);return Object.freeze({storage:i,sendEvent:(e,t=!1)=>(null!=e&&i.push(e),i.empty()||(i.full()&&(t=!0),n.promise=o(t)),n.promise),getVariable:e=>r.getVariable(e)})}(v,t)),t.initialized=!0,(e=>{e.facets.setBrowser(s().name),e.facets.setBrowserVersion(s().version),e.facets.setDeviceType(s().product),e.facets.setOSArchitecture(s().os.architecture.toString()),e.facets.setOSType(s().os.family),e.facets.setOSVersion(s().os.version)})(t),document.addEventListener("visibilitychange",(()=>{l()})),window.addEventListener("beforeunload",(()=>{l()})),window.addEventListener("pagehide",(()=>{l()}))},getSupportedTokenTypes:function(){return r},setAuthToken:function(e,n=r.JWT){if(!function(e){return o.has(e)}(n))throw Error("Invalid token type: "+n);t.xTokenType=n,t.xToken=e},sendEvent:function(e,i={}){if(!a())throw Error("Scribe client not initialized: Send event can only be called after client is initialized.");p(t);let r={};return r.e=[t.appName,"track","web",e].join("."),r.t=Date.now(),r.d=Object.assign({},t.facets.build(),t.globalFacets,i),n.sendEvent(r)},forceUpdate:l,setFacets:function(e={}){t.globalFacets=Object.assign({},t.globalFacets,e)},usePlugin:function(){void 0===t.plugins&&(t.plugins=i(this)),t.plugins.usePlugin(arguments)},getVariable:async function(e,i={}){if(!a())throw Error("Scribe client not initialized: getVariable can only be called after client is initialized.");if(void 0===e)throw Error("Missing param: variable");p(t);const r={},o=Object.assign({},t.facets.build(),i);return r.reqBody=Object.assign({},o,{var:e}),r.service="scribesdk-web",n.getVariable(r)},getPredefinedFacetsBuilder:()=>y})}();window.scribesdk&&window.scribesdk.q&&function(e,t){window.scribesdk.q.forEach((function(t){!function(e,t){let[n,...i]=t;e[n](...i)}(e,t)}))}(k),window.scribesdk=k;const T=k},906:()=>{}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(908)})();